import QtQuick 2.0

Rectangle{
    property string carName: "平地机001"
    property string controlMode: "Remote mode"
    property real bandwidth: 0

    color: "#1B262D"
    opacity: 0.5
    height: 100
    width: 1080
    Row{
        spacing: 50
        anchors.verticalCenter: parent.verticalCenter
        anchors.right: parent.right
        Text {
            color: "white"
            text: carName
            font{
                family: "Microsoft YaHei"
                pixelSize: 46
            }
        }

        Text{
            text: ". " + controlMode
            color: "#00FFFF"
            font{
                family: "Microsoft YaHei"
                pixelSize: 46
            }
        }

        Row{
            spacing: 10
            Image {
                y: 15
                source: "qrc:/imgs/wifi.png"
            }
            Text{
                text: String(bandwidth) + " kbps"
                color: "#00FF29"
                font{
                    family: "Microsoft YaHei"
                    pixelSize: 46
                }
            }
        }
    }

}
